# ==============================================================================
# File details
# ------------
#
# This section defines various details about the file format.

*FILE

#Parameter  Value            Description
#---------- ---------------- ---------------------------------------------------
VERSION     7.1.1            File version
DECSEP      .                Decimal separator used in this file


# calc_pids--LS1B-1WB-B4901 <-- use values from table B4901
# ==============================================================================
# Units
# -------------------
# See sae_generic.txt for more information on the *UNITS section

*UNITS

#Code     System     Abbr     Description
#-------- ---------- -------- -------------------------------------------------------------
None      None       ""       "No units"
K         Metric     "K"      "Degrees Kelvin"
R         Imperial   "R"      "Degrees Rankine"
LAM       None       "LAM"    "Lambda"
EQR       None       "EQR"    "EQR (1/Lambda)"

# ==============================================================================
# Add slot definitions here
# --------------------------------
# See sae_generic.txt for more information on "SLOT" formats
#
#Units             Low          High      Fmt  Expression
#------------ ------------- ------------- ---- --------------------------------------------------------------

*CLC-00-041
AFR               10.0          20.0       .3  "{CALC.AFR_LC11}"
LAM                0.5           1.5       .4  "{CALC.WB.AFR}/14.7" 
EQR                0.5           1.5       .4  "1/{CALC.WB.LAM}"

*CLC-00-110
factor             0.5           1.5       .4  "{CALC.WB.LAM}*{GM.EQIVRATIO}"

*CLC-00-260
factor             0.0           1.0       .4  "lookup({SAE.MAF.gps}, 0,0.60, 10,0.17, 20,0.13, 30,0.09, 40,0.08, 50,0.07, 60,0.06, 70,0.05, 80,0.05, 90,0.04)"

*CLC-00-273
C                  0.0         100.0       .1  "{SAE.IAT.C}+({SAE.ECT.C}-{SAE.IAT.C})*{CALC.B4901}"
F                 40.0         220.0       .1  "{SAE.IAT.F}+({SAE.ECT.F}-{SAE.IAT.F})*{CALC.B4901}"
K                280.0         380.0       .1  "{CALC.DAT.C}+273.15"
R                500.0         680.0       .1  "{CALC.DAT.F}+459.67"

*CLC-00-300
VE                 0.0           2.468     .4  "{SAE.MAF.gps}*{CALC.DAT.K}/{SAE.MAP.kPa}/{SAE.RPM}*15"

*CLC-00-302
VE                 0.0           2.468     .4  "{CALC.WO2BEN}*{CALC.VEN.VE}"

# ==============================================================================
*PRN - Parameter Reference Numbers
# --------------------------------
# See sae_generic.txt for more information on the *PRN section
#
#Code                      PRN  SLOT         Units            System           Description
#------------------------- ---- ------------ ---------------- ---------------- ------------------------------------------

CALC.WB                    F041 CLC-00-041   "AFR,LAM,EQR"    Tuning           "Lambda and EQR from WB"
CALC.WO2BEN                F110 CLC-00-110   factor           Tuning           "BEN from WB"

CALC.B4901                 F260 CLC-00-260   factor           Tuning           "B4901 ECT/IAT blend factor lookup"
CALC.DAT                   F273 CLC-00-273   "C,F,K,R"        Tuning           "Dynamic Air Temperature"

CALC.VEN                   F300 CLC-00-300   VE               Tuning           "Calculated VE (from MAF)"
CALC.VET                   F302 CLC-00-302   VE               Tuning           "Calculated VE (from MAF), Corrected by BEN"

# leave at least two blank lines after this one

